from src.application.server.dto import ServerDTO
from src.infrastructure.db import models


def convert_db_model_to_server_dto(server: models.Server) -> ServerDTO:
    return ServerDTO(
        name=server.name,
        status=server.status,
        ip_address=server.ip_address,
        proxy_type=server.proxy_type,
        proxy_privacy=server.proxy_privacy,
    )
